package fengma.service;

import fengma.service.impl.ComputeClientHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by liys on 2017/9/12.
 */
@FeignClient(value = "compute-hystrix-service",fallback = ComputeClientHystrix.class)
public interface ComputeHystrixClient {
    @RequestMapping(method = RequestMethod.GET, value = "/addhystrix")
    Integer addhystrix(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b);

}
